/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package xmlconvert.reader;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author o.rybyanskyy
 */
public class FieldContainer {
    
    private List<String[]> fields;
    
    FieldContainer(){
        fields = new ArrayList<>();
    }
    
    public void addField(String key, String value){
        String [] s = {key, value};
        fields.add(s);
    }
    
    public int size(){
        return fields.size();
    }
    
    public String getFieldName(int i){
        return fields.get(i)[0];
    }
    
    public String getFieldValue(int i){
        return fields.get(i)[1];
    }
    
    
}
